import selfNaxios from 'utils/ajaxConfig.js';

export function InsertWorkGanttItem (param, success, error) {
  return selfNaxios({
      method : 'post',
      url : '/schedule/template/save',
      data: param
    }, success, error)
}

export function getWorkGanttDependName (param, success, error) {
  return selfNaxios({
      method : 'get',
      url : '/planTemplet/queryByRoot',
      params: param
    }, success, error)
}

export function getUserBaseDataUrl (param, success, error) {
  return selfNaxios({
      method : 'get',
      params: param,
      url : '/user/me',
    }, success, error)
}

export function getPlanTemplet (param, success, error) {
  return selfNaxios({
      method : 'get',
      url : '/projectType/list',
      params: param
    }, success, error)
}
export function getDepartmentData (param, success, error) {
  return selfNaxios({
      method : 'get',
      url : '/projectPlan/queryDept',
      params: param
    }, success, error)
}
export function getOrgData (param, success, error) {
  return selfNaxios({
      method : 'get',
      url : '/organization/getPermOrgByUser',
      params: param
    }, success, error)
}
